jQuery(document).ready(function($){
  // set up the options to be used for jqDock...
  var dockOptions =
    { align: 'left' // vertical menu, with expansion RIGHT from a fixed LEFT edge
    , flow: true // allow surrounding elements to flow with changes in menu size
    };
  // ...and apply...
  $('#ball-menu').jqDock(dockOptions);
});